package com.ruoyi.finance.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 凭证模板明细对象 voucher_template_detail
 *
 * @author ruoyi
 * @date 2025-03-03
 */
public class VoucherTemplateDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;
    /** 模板ID */
    @Excel(name = "模板ID")
    private Long templateId;

    /** 科目ID */
    @Excel(name = "科目ID")
    private Long subjectId;

    /** 摘要ID */
    @Excel(name = "摘要ID")
    private Long summaryId;

    /** 借方金额 */
    private BigDecimal debitAmount;

    /** 贷方金额 */
    private BigDecimal creditAmount;
    /** 方向 */
    @Excel(name = "方向")
    private Long direction;
    private Long validValues;

    public void setDetailId(Long detailId)
    {
        this.detailId = detailId;
    }

    public Long getDetailId()
    {
        return detailId;
    }
    public void setTemplateId(Long templateId)
    {
        this.templateId = templateId;
    }

    public Long getTemplateId()
    {
        return templateId;
    }
    public void setSubjectId(Long subjectId)
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId()
    {
        return subjectId;
    }
    public void setSummaryId(Long summaryId)
    {
        this.summaryId = summaryId;
    }

    public Long getSummaryId()
    {
        return summaryId;
    }
    public void setDebitAmount(BigDecimal debitAmount)
    {
        this.debitAmount = debitAmount;
    }

    public BigDecimal getDebitAmount()
    {
        return debitAmount;
    }
    public void setCreditAmount(BigDecimal creditAmount)
    {
        this.creditAmount = creditAmount;
    }

    public BigDecimal getCreditAmount()
    {
        return creditAmount;
    }
    public void setDirection(Long direction)
    {
        this.direction = direction;
    }

    public Long getDirection()
    {
        return direction;
    }
    public void setValidValues(Long validValues)
    {
        this.validValues = validValues;
    }

    public Long getValidValues()
    {
        return validValues;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("templateId", getTemplateId())
            .append("subjectId", getSubjectId())
            .append("summaryId", getSummaryId())
            .append("debitAmount", getDebitAmount())
            .append("creditAmount", getCreditAmount())
            .append("direction", getDirection())
            .append("validValues", getValidValues())
            .toString();
    }
}
